package com.qms.repast.ui.activity;

import android.content.Intent;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.qms.repast.R;
import com.qms.repast.ui.base.BaseActivity;
import com.qms.repast.ui.presenter.UpdateNamePresenter;
import com.qms.repast.ui.view.IUpdateNameView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author 泅渡者
 * @date 2018/9/14 0014
 * @describe: 更新用户名称
 */
public class UpdateNameActivity extends BaseActivity<UpdateNamePresenter> implements IUpdateNameView {
	@BindView(R.id.iv_finish)
	ImageView ivFinish;
	@BindView(R.id.edt_name)
	EditText edtName;
	@BindView(R.id.tv_save)
	TextView tvSave;

	@Override
	protected int initLayout () {
		return R.layout.activity_update_name;
	}

	@Override
	protected void initPresenter (Intent intent) {
		mPresenter = new UpdateNamePresenter(this, this);
	}

	@Override
	protected void initView () {

	}

	@Override
	protected void initData () {

	}

	@OnClick({R.id.iv_finish, R.id.tv_save})
	public void onViewClicked (View view) {
		switch (view.getId()) {
			case R.id.iv_finish:
				finish();
				break;
			case R.id.tv_save:
				break;
			default:
				break;
		}
	}
}
